package com.cloud.user.service.impl;

import com.cloud.user.dao.UserInfoRepository;
import com.cloud.user.entity.UserInfo;
import com.cloud.user.service.UserInfoServiceInf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * describe:
 *
 * @author zhanghaixuan
 * @date 2018/09/11
 **/
@Service
public class UserInfoServiceImpl implements UserInfoServiceInf {
	@Autowired
	private UserInfoRepository userInfoRepository;

	@Override
	public UserInfo findByOpenid(String openid) {
		return userInfoRepository.findByOpenid(openid);
	}
}
